package com.teamone.etl.accountant.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 充值明细表(RechargeSheet)实体类
 *
 * @author makejava
 * @since 2021-01-20 15:38:56
 */
public class RechargeSheet implements Serializable {
    /**
    * 编号
    */
    @ExcelProperty("编号")
    private Integer id;
    /**
    * 充值编号
    */
    @ExcelProperty("充值编号")
    private String rechargeId;
    /**
    * 交易名称
    */
    @ExcelProperty("交易名称")
    private String tradingName;
    /**
    * 充值时间
    */
    @ExcelProperty("充值时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date rechargeTime;
    /**
    * 创建时间
    */
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
    * 修改时间
    */
    @ExcelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
    * 交易金额
    */
    @ExcelProperty("交易金额")
    private BigDecimal tradingMoney = new BigDecimal(0);
    /**
    * 账户编号
    */
    @ExcelProperty("账户编号")
    private Integer accountId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRechargeId() {
        return rechargeId;
    }

    public void setRechargeId(String rechargeId) {
        this.rechargeId = rechargeId;
    }

    public String getTradingName() {
        return tradingName;
    }

    public void setTradingName(String tradingName) {
        this.tradingName = tradingName;
    }

    public Date getRechargeTime() {
        return rechargeTime;
    }

    public void setRechargeTime(Date rechargeTime) {
        this.rechargeTime = rechargeTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public BigDecimal getTradingMoney() {
        return tradingMoney;
    }

    public void setTradingMoney(BigDecimal tradingMoney) {
        this.tradingMoney = tradingMoney;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    @Override
    public String toString() {
        return "RechargeSheet{" +
                "id=" + id +
                ", rechargeId='" + rechargeId + '\'' +
                ", tradingName='" + tradingName + '\'' +
                ", rechargeTime=" + rechargeTime +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", tradingMoney=" + tradingMoney +
                ", accountId=" + accountId +
                '}';
    }
}